package com.study.talk.module.netty.message.request;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 同意加入群聊请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AcceptGroupRequest extends TalkMessage {

    @ApiModelProperty("群聊id")
    private Integer groupId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("邀请人id")
    private Integer inviteUserId;

    @ApiModelProperty("是否同意")
    private Boolean accept;

    @Override
    public byte getType() {
        return MessageType.ACCEPT_GROUP_REQUEST;
    }
}
